﻿using IncidentesADO;
using IncidentesBE;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;
using System.Web.Services;

namespace IncidentesSOAP
{
    /// <summary>
    /// Summary description for TB_IncidentesWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
     [System.Web.Script.Services.ScriptService]
    public class TB_IncidentesWS : System.Web.Services.WebService
    {

        TB_IncidentesADO _TB_IncidentesADO = new TB_IncidentesADO();
        Gne_EstadisticaBE _Gne_EstadisticaBE = new Gne_EstadisticaBE();

        [WebMethod]
        public List<Gne_EstadisticaBE> EstadisticaTB_IncidentesRegistroByDepartamento(string _Fecha_registro, string _Fecha_registro1)
        {
            return _TB_IncidentesADO.EstadisticaTB_IncidentesRegistroByDepartamento(_Fecha_registro, _Fecha_registro1);
        }
        [WebMethod]
        public int InsertarTB_Incidentes(TB_IncidentesBE _inseBE)
        {
            return _TB_IncidentesADO.InsertarTB_Incidentes(_inseBE);
        }
        [WebMethod]
        public bool ActualizarTB_Incidentes(TB_IncidentesBE _inseBE)
        {
            return _TB_IncidentesADO.ActualizarTB_Incidentes(_inseBE);
        }
    }
}
